-- GENERATED SPELL FOR [Goc] --


function spell0_20555(pUnit, Event) --@Boulder Volley,n/a--
pUnit:FullCastSpellOnTarget(38783,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20555', 1500, 1)
end

function spell1_20555(pUnit, Event) --@Ground Smash,n/a--
pUnit:FullCastSpellOnTarget(38784,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20555', 900, 1)
end

function spell2_20555(pUnit, Event) --@Ground Smash,n/a--
pUnit:FullCastSpellOnTarget(38785,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20555', 594, 1)
end

function Sorts_20555(pUnit, Event)
local choix_sorts_20555 = math.random(0, 2)
if choix_sorts_20555 == 0 then
pUnit:RegisterEvent('spell0_20555', 1, 1)
end
if choix_sorts_20555 == 1 then
pUnit:RegisterEvent('spell1_20555', 1, 1)
end
if choix_sorts_20555 == 2 then
pUnit:RegisterEvent('spell2_20555', 1, 1)
end
end

function mob20555_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20555', math.random(1500, 3000), 1)
end

function mob20555_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20555_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20555_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20555, 1, 'mob20555_Action')
RegisterUnitEvent(20555, 2, 'mob20555_Leave')
RegisterUnitEvent(20555, 3, 'mob20555_Kill')
RegisterUnitEvent(20555, 4, 'mob20555_Die')
